package com.brucekong.slm.service.upload;

import com.brucekong.slm.mapper.upload.FileMapper;
import com.brucekong.slm.model.upload.FileDomain;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class FileService {

    @Resource
    private FileMapper fileMapper;

    public void save(FileDomain fileDomain) {
        fileMapper.save(fileDomain);
    }

    public FileDomain getFileBySaveName(String saveName) {
        return fileMapper.getFileBySaveName(saveName);
    }

    public int getMaxId() {
        return fileMapper.getMaxId();
    }
}
